package com.rop.znyx.acl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rop.znyx.model.acl.AdminRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Title: AdminRoleMapper
 * @Author Rop
 * @Date 2023/6/13 23:15
 * @description: 用户角色管理
 */

@Repository
public interface AdminRoleMapper extends BaseMapper<AdminRole> {

    /**
     * 批量添加用户角色
     * @param id 用户id
     * @param roleIds 角色ids
     */
    void batchInsert(@Param("id") Long id, @Param("roleIds") Long[] roleIds);
}
